def accumulate(start: int, end: int, step = 1) -> int:
    result = 0
    number = start
    while number < end:
        result = result + number
        number = number + step
    return result

start = 10
end = 100
print(f"{start}累加到{end}结果为: {accumulate(start, end)}")

start = 50
end = 200
print(f"{start}累加到{end}结果为: {accumulate(start, end)}")